<template>
  <div style="1220px">
    <el-carousel indicator-position="outside" class="carouselel">
      <el-carousel-item v-for="item in carouselimg" :key="item.id">
        <img :src="item.imgpath" class="carouseimg" />
      </el-carousel-item>
    </el-carousel>

    <el-row :gutter="20">
         <el-col :span="6" >
           <img src= '@/assets/img/94c74e01afe50a86c3a87ff030b85781.jpg' style="width:100%"/>
         </el-col>
      <el-col :span="6" :key="item.id"  v-for="item in hotproduct">
          <a><img :src="item.imgpath" style="width:100%"/></a>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      //热门产品
      hotproduct: [
        {
          id: 1,
          imgpath: require("@/assets/img/94c74e01afe50a86c3a87ff030b85781.jpg")
        },
        {
          id: 2,
          imgpath: require("@/assets/img/816a66edef10673b4768128b41804cae.jpg")
        },
        {
          id: 3,
          imgpath: require("@/assets/img/94c74e01afe50a86c3a87ff030b85781.jpg")
        }
      ],
      //轮播图片
      carouselimg: [
        {
          id: 1,
          imgpath:
            "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a4aa0cbfad7de34618c4bebdbdeee4e1.jpg?w=2452&h=920"
        },
        {
          id: 2,
          imgpath:
            "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a4aa0cbfad7de34618c4bebdbdeee4e1.jpg?w=2452&h=920"
        }
      ]
    };
  }
};
</script>
<style scoped>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }





a{
    cursor: pointer;
}
.carouselel {
  height: 460px;
}
.carouseimg {
  width: 100%;
  height: 100%;
}
.el-carousel__container {
  height: 88%;
}

</style>